{% extends 'base.htm' %}
{% block title %}{{ forum.title }} : {{ thread.name }}{% endblock %}
{% block description %}{{ forum.description }}{% endblock %}
{% block keywords %}{{ forum.description }}{% endblock %}

{% block path %}
    <table width="100%" cellspacing="2" cellpadding="2" border="0">
    <tbody>
     <tr>
      <td class="nav" valign="bottom" align="left">
       <span class="nav" style="color: rgb(255, 102, 0);">
        <a class="nav" href="/">{{ forum.title }}</a>
        &raquo; 
        <a class="nav" href="">{{ thread.name }}</a>
       </span>
      </td>
      <td valign="middle" nowrap="nowrap" align="right">
      </td>
     </tr>
    </tbody>
    </table>
{% endblock %}

{% block main %}
    <div id="imp_topics_277" style="position: relative; font-size: 1.4em;">
    <table class="forumline" width="100%" cellspacing="1" cellpadding="4" border="0">
    <tbody>
     <tr>
      <th class="thCornerL" nowrap="nowrap" height="25" align="center" style="cursor: pointer;" colspan="2"> &#20027;&#39064; </th>
      <th class="thTop" width="50" nowrap="nowrap" align="center"> &#22238;&#22797; </th>
      <th class="thTop" width="100" nowrap="nowrap" align="center"> &#20316;&#32773; </th>
      <th class="thCornerR" width="150" nowrap="nowrap" align="center"> &#26368;&#21518;&#22238;&#22797; </th>
     </tr>
     {% for topic in topics %}
     <tr>
      <td class="row1" width="20" valign="middle" align="center">
       <img width="19" height="18" alt="" src="/images/folder.gif"/>
      </td>
      <td class="row1" width="100%" style="">
       <span class="topictitle">
        <a class="topictitle" href="view?id={{ topic.key.id }}">{{ topic.name }}</a>
       </span>
      </td>
       <td class="row2" valign="middle" align="center" style="">
        <span class="postdetails">{{ topic.posts_count }}</span>
       </td>
       <td class="row1" valign="middle" align="center" style="">
        <span class="name">
         <a href="viewProfile?user={{ topic.author.email }}&height=400&width=700" class="thickbox" title="{{ topic.author }} profile" class="genmed" style="color: rgb(255, 163, 79);"> {{ topic.author }} </a>
        </span>
       </td>
       <td class="row1" valign="middle" nowrap="nowrap" align="center" style="">
        <span class="postdetails">
         {% if topic.getLastPost  %}
         {{ topic.getLastPost.date|date:"d.m.Y H:i"  }}
         <br/>
         {{ topic.getLastPost.author }}
         {% endif %}
        </span>
       </td>
     </tr>
     {% endfor %}
     </tbody>
     </table>
    <table width="100%" cellspacing="2" cellpadding="2" border="0" align="center" style="background: #ffffff;">
    <tbody>
     <tr>
      <td width="90" valign="bottom" align="left">
       <!--<a href="addTopic"><img width="82" height="25" border="0" alt="Add new topic" src="/images/post.gif"/></a>-->
       <a href="addTopic?id={{ thread.key.id }}&height=120&width=700" class="thickbox" title="Add new topic">
        <img width="82" height="25" border="0" alt="Add new topic" src="/images/post.gif"/>
       </a> 
      </td>
      <td valign="bottom" align="left">
      </td>
      <td valign="bottom" nowrap="nowrap" align="right">
      </td>
     </tr>
    </tbody>
    </table>
{% endblock %}
